package com.cvr.project.api;

import com.cvr.project.entity.IDCardEntity;
import com.cvr.project.entity.ORCEntity;
import com.cvr.project.repertory.BaseResponse;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import io.reactivex.Flowable;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * _ooOoo_
 * o8888888o
 * 88" . "88
 * (| -_- |)
 * O\ = /O
 * ____/`---'\____
 * .   ' \\| |// `.
 * / \\||| : |||// \
 * / _||||| -:- |||||- \
 * | | \\\ - /// | |
 * | \_| ''\---/'' | |
 * \ .-\__ `-` ___/-. /
 * ___`. .' /--.--\ `. . __
 * ."" '< `.___\_<|>_/___.' >'"".
 * | | : `- \`.;`\ _ /`;.`/ - ` : | |
 * \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 * `=---='
 * .............................................
 * 佛祖保佑             永无BUG
 *
 * @author :created by master
 * time :2021年6月29日21:44:03
 * 描述：接口api
 */
public interface ApiService {
    String BASEURL = "https://prod.admin.hpxgyg.cn/api.php/";
    String H5URL = "https://client.hpxgyg.cn/#/pageB/terminal/index";

    //身份证登录
    @GET("index/user_reg/icCard_login")
    Flowable<BaseResponse<IDCardEntity>> icCardLogin(@Query("families_id") String families_id, @Query("phone") String phone);
    //人脸登录，截取摄像头人脸图片
    @Multipart
    @POST("index/user_reg/orc_login")
    Flowable<BaseResponse<ORCEntity>> icOrcLogin(@Part List<MultipartBody.Part> file);
}
